#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

public slots:
    void onMove();
    void onStay();
    void onClose();

public:
    void showMessage();

private:
    QTimer *m_pShowTimer;
    QTimer *m_pStayTimer;
    QTimer *m_pCloseTimer;
    QPoint m_point;
    float m_dTransparent;
    int m_nDesktopHeight;

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
